package com.rogchen.learning.hystrinxclient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Rogchen  rogchen128@gmail.com
 * @description:
 * @product: IntelliJ IDEA
 * @create by 20-3-19 14:27
 **/
@Controller
public class TestController {
    @Autowired
    private HystrixServer hystrixServer;

    @GetMapping("test")
    @ResponseBody
    public String test(){
        Map map = hystrixServer.getServer();
        System.out.println(map);
        return "index";
    }
}
